//index.js
//获取应用实例
Page({
    data:{
        imageUrl: "http://static.geek51.cn/diandian/qinggui.png"
    },
    onLoad: function(){
        wx.setNavigationBarTitle({
      title: "点点轻轨",
    })
    },

   previewImage: function (e) {
    var that = this;
    var list = [];
    for (var index in that.data.imageUrl) {
      list[index] = that.data.imageUrl
    }
    var current = e.target.dataset.src;
    wx.previewImage({
      current: current, // 当前显示图片的http链接 
      urls: list // 需要预览的图片http链接列表 
    })
  }
})